/**
 * @file spl06.c
 * @brief SPL06 Barometer driver implementation
 */

#include "spl06.h"
#include "bsp_i2c.h"
#include <math.h>
#include <stddef.h>

int SPL06_Init(void)
{
    // TODO: Initialize SPL06 (I2C2)
    return 0;
}

int SPL06_ReadData(SPL06_Data_t *data)
{
    if (data == NULL) {
        return -1;
    }
    
    // TODO: Read barometer data
    // Calculate altitude from pressure
    return 0;
}

